package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Dish;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//菜品管理
public interface DishService {
    //分页条件查询
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    //新增菜品
    void save(Dish dish);

    //修改：菜品回显
    Dish findById(Long id);

    //菜品修改
    void update(Dish dish);

    //起售停售
    void updateStatus(Integer status, List<Long> ids);

    //菜品删除
    void deleteBatchIds(List<Long> ids);

    //新增套餐回显
    List<Dish> findByType(Long categoryId, String name);

    //根据分类id+状态查询菜品列表
    List<Dish> findList(Long categoryId, Integer status);
}
